package com.css.fxfzxczh.modules.synthesizeInfoManage.knowledgeManagement.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.css.fxfzxczh.modules.util.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @Author: zhangSongRui
 * @CreateTime: 2023/01/11
 * @Description: 知识库管理
 */
@Data
@ExcelTarget("KnowledgeManagement")
public class KnowledgeManagement extends BaseEntity {

    //id
    private String xkmId;
    //地震事件管理id
    @ApiModelProperty(name = "xsemId", value = "地震事件管理id")
    @Excel(name = "地震事件编号", width = 25, orderNum = "1")
    private String xsemId;
    //知识库编号
    @Excel(name = "编号", width = 20, orderNum = "2")
    @ApiModelProperty(name = "knowledgeCode", value = "知识库编号")
    private String knowledgeCode;
    //名称
    @Excel(name = "名称", width = 20, orderNum = "3")
    @ApiModelProperty(name = "knowledgeName", value = "知识名称")
    @NotEmpty(message = "名称不能为空！")
    private String knowledgeName;
    //知识库类别
    @Excel(name = "知识库类别", width = 20, orderNum = "4",replace={"基础知识库_1","信息库_2"})
    @NotEmpty(message = "知识库类别不能为空！")
    @ApiModelProperty(name = "category", value = "知识库类别")
    private String category;
    //描述信息
    @Excel(name = "描述信息", width = 50, orderNum = "5")
    @ApiModelProperty(name = "commentInfo", value = "描述信息")
    private String commentInfo;
    //附件id
    @ApiModelProperty(value = "附件id")
    private String attachment;
    //附件名称
    private String attachmentName;
    //文件类型
    @ApiModelProperty(value = "文件类型")
    private String fileType;
    //创建人单位
    @ApiModelProperty(name = "company", value = "创建人单位")
    @Excel(name = "创建单位", width = 25, orderNum = "6")
    private String company;
}
